using System.Linq.Expressions;
using Unity.Entities;
using UnityEngine;

class PlayerAuthoring:MonoBehaviour{
    class Baker : Baker<PlayerAuthoring>
    {
        public override void Bake(PlayerAuthoring authoring)
        {
           var en=GetEntity(authoring,TransformUsageFlags.Dynamic);
           AddComponent(en,new MoveComponent());
           AddComponent(en,new PlayerControlComponent());
           AddComponent(en,new CharacterAttributeComponent(){hp=1000,demage=50});
           AddComponent(en,new NormalBulletAbilityComponent(){cd=0.5f,timer=0f,demagePercent=1f,range=6f});
        }
    }
}